package org.example;

import org.example.Thread.CreateThread;
import org.example.Thread.ThreadCallable;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
import java.util.concurrent.ThreadPoolExecutor;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) throws ExecutionException, InterruptedException {

//        CreateThread t1 = new CreateThread();
//        t1.start();
//        for (int i  = 10 ; i < 10 ; i ++) {
//
//        }
//        Thread thread = new Thread(new Runnable() {
//            @Override
//            public void run() {
//                System.out.println("这是一个继承Runnable的线程");
//            }
//        });
//
//        thread.start();
//            FutureTask<String> task = new FutureTask<>(new ThreadCallable());
//        Thread thread = new Thread(task);
//        thread.start();
//        String res = task.get();
//        System.out.println(res  );
        String s = String.valueOf(45);
        System.out.println(s);

    }

}